package com.bwie.service;

import com.bwie.service.impl.IUserServiceImpl;
import com.bwie.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/29 14:02
 */

@Service
@FeignClient(value = "server-2205a-user", fallback = IUserServiceImpl.class)
public interface IUserService {

    @GetMapping(value = "/user/user/getUserById/{userId}")
    public R getUserById(@PathVariable("userId") Integer userId);

    @PostMapping(value = "/user/user/subUserMoney/{userId}/{userMoney}")
    public R subUserMoney(@PathVariable("userId") Integer userId, @PathVariable("userMoney") Double userMoney);
}
